package xxy.com.yangproject.model;

import android.annotation.SuppressLint;
import android.os.Parcel;
import android.os.Parcelable;


public class BaseResponseBean implements Parcelable {
    public int code;
    public String messege;
    public String description;

    public static final Creator<BaseResponseBean> CREATOR = new Creator<BaseResponseBean>() {
        @Override
        public BaseResponseBean createFromParcel(Parcel in) {
            return new BaseResponseBean(in);
        }

        @Override
        public BaseResponseBean[] newArray(int size) {
            return new BaseResponseBean[size];
        }
    };

    public int getResult() {
        return result;
    }

    public void setResult(int result) {
        this.result = result;
    }

    public int result;

    protected BaseResponseBean(Parcel in) {
        code = in.readInt();
        messege = in.readString();
        description = in.readString();
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessege() {
        return messege;
    }

    public void setMessege(String messege) {
        this.messege = messege;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(code);
        dest.writeString(messege);
        dest.writeString(description);
    }
}
